package com.bdqn.crm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.crm.mapper.CstCustomerMapper;
import com.bdqn.crm.pojo.CstCustomer;
import com.bdqn.crm.service.CstCustomerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */
@Service
public class CstCustomerServiceImpl extends ServiceImpl<CstCustomerMapper, CstCustomer>
        implements CstCustomerService {

    @Resource
    private CstCustomerMapper cstCustomerMapper;

    /**
     * 分页查询所有角色数据
     *
     * @param custName
     * @param custRegion
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @Override
    public List<CstCustomer> selectPages(String custName, String custRegion, Integer pageIndex, Integer pageSize) {
        return cstCustomerMapper.selectPages(custName,custRegion,pageIndex,pageSize);
    }

}




